package com.example.speeddating.service;

import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
import com.example.speeddating.entity.Article;
import com.example.speeddating.entity.Comment;
import com.baomidou.mybatisplus.extension.service.IService;

import java.util.List;

/**
 *
 * @author tina
 * @since 2023-06-28 11:14:33
 */
public interface CommentService extends IService<Comment> {

    Page getTopCommentsByArticleId(Page<Comment> page,Long articleId,Long curUserId);

    Page selectCommentByArticleId(Page<Comment> page, Long articleId);

    public Integer selectArticleCommentNum(long articleId);

    public void publishComment(Comment comment);

    void deleteCommentById(Long id);

    Comment selectComment(Long id);
}
